package Java8实战._1_Lambda._5_定义接口对选择建模;

import Java8实战._1_Lambda.Apple;

public class AppleRedAndHeavyPredicate implements ApplePredicate{
    @Override
    public boolean test(Apple apple) {
        return "red".equals(apple.getColor()) &&
                apple.getWeight() >= 150;
    }
}
